package com.lin.demo.annotations;

import java.lang.annotation.*;

/**
 * @Author zimingl
 * @Date 2023/4/3 21:56
 * @Description: EnumField
 */
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface EnumField {
    String value() default "";

    Type type() default Type.STRING;

    enum Type {
        ENUM,
        STRING,
        INT,
        DOUBLE;
    }
}
